'''
Created on Aug 24, 2013

@author: marchi
'''
from math import *

class Ellipse(object):
    '''
    classdocs
    '''


    def __init__(self,a,b,c):
        '''
        Constructor
        '''
        self.X=a;self.Y=b;self.Z=c;
        self.p=1.6075;
        
    def Surface(self):
        X=self.X;Y=self.Y;Z=self.Z;
        p=self.p;
        argc=(pow(X*Y,p)+pow(X*Z,p)+pow(Y*Z,p))/3.0
        self.Surf=4.0*pi*pow(argc,1.0/p);
        return self.Surf;
    def Volume(self):
        X=self.X;Y=self.Y;Z=self.Z;
        self.Vol=(4.0/3.0)*pi*X*Y*Z;
        return self.Vol;
        